home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group02b.txt
/
000145_icon-group-sender_Mon Nov 25 07:54:49 2002.msg
< prev
next >
Wrap
Internet Message Format
|
2003-01-02
|
1KB
Return-Path: <icon-group-sender>
Received: (from root@localhost)
by baskerville.CS.Arizona.EDU (8.11.1/8.11.1) id gAPEpkw03382
for icon-group-addresses; Mon, 25 Nov 2002 07:51:46 -0700 (MST)
Message-Id: <200211251451.gAPEpkw03382@baskerville.CS.Arizona.EDU>
From: ernobe <ernobe@msn.com>
X-Newsgroups: comp.lang.icon
Subject: delete( L, i )
Date: Sun, 24 Nov 2002 04:09:03 +0200
X-Newsreader: MicroPlanet Gravity v2.50
To: icon-group@cs.arizona.edu
Errors-To: icon-group-errors@cs.arizona.edu
Status: RO
I got an e-mail from Clint Jeffery in which he says that the delete( L, i )
function is not part of Icon, but of Unicon. Instead of bothering him with
more e-mails I thought I'd publish my results here in case some of you want to
help me figure out why it does work:
procedure main()
me := [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ]
ab := [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ]
every 1 to 2 do
every delete( ab, !me )
every writes( " ", string( ab[ 1 to 10 ] ) )
end
This program prints this:
4 8
Which is what it should if delete(L, i) does work in Icon.
--
my esoteric links:
http://www.costarricense.cr/pagina/ernobe/